package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.service.UpdateDrawingInfoNoImgService;
import ysc.cqnu.operdb.serviceImpl.UpdateDrawingInfoServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class UpdateDrawingInfoNoImgController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private UpdateDrawingInfoNoImgService updateDrawingInfoNoImgService;
    @RequestMapping(value = "/updatedrawingInfoNoImg",method = RequestMethod.POST)
    public ResultData updatedrawingInfoNoImg(@RequestParam(value = "huagao") String huagao, @RequestParam(value = "visualize") String visualize, @RequestParam(value = "purpose") String purpose,
                                        @RequestParam(value = "theSite") String theSite, @RequestParam(value = "bfDescribe")String bfDescribe, @RequestParam(value = "id")String id){
        System.out.println("画稿信息不带图片视频修改前端连接");
        resultData = updateDrawingInfoNoImgService.updateDrawingInfoNoImgService(huagao,visualize,purpose,theSite,bfDescribe,id);
        return resultData;
    }
}
